package com.guigusuqi.survey.mapper;

import com.guigusuqi.survey.entity.Question;
import com.guigusuqi.survey.entity.Questionnaire;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author suqi
 * @since 2022-04-12
 */
public interface QuestionnaireMapper extends BaseMapper<Questionnaire>
{

//    List<Questionnaire> findQuestionnaireAllByPlateId(String plateId);

    List<Question> findQuestion();

    int publishQuestionnaire(String openid, String questionId,String userAnswer, String questionScore);
}
